import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';

@Entity({
  comment: '公共字典表',
})
export class CommonDic {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({
    type: 'varchar',
    length: 255,
    comment: '字典类型',
  })
  dicType: string;

  @Column({
    type: 'varchar',
    length: 255,
    comment: '字典名称',
  })
  dicName: string;

  @Column({
    type: 'varchar',
    length: 255,
    comment: '字典编码',
  })
  dicCode: string;

  @Column({
    type: 'varchar',
    length: 255,
    comment: '字典描述',
  })
  dicDesc: string;

  @Column({
    type: 'varchar',
    length: 255,
    comment: '字典表名',
    nullable: true,
  })
  dicTableName: string;

  @Column({
    type: 'varchar',
    length: 255,
    comment: '字典列名',
    nullable: true,
  })
  dicColName: string;
}
